---
title: "iframe blocking"
description: "Learn how to block iframes based on consent."
lastModified: 2025-09-19

availableIn:
  - framework: 'javascript'
    url: '/docs/frameworks/javascript/iframe-blocking'
    title: 'JavaScript'
  - framework: 'react'
    url: '/docs/frameworks/react/iframe-blocking'
    title: 'React'
  - framework: 'next'
    url: '/docs/frameworks/next/iframe-blocking'
    title: 'Next.js'
---

<import>../javascript/shared/iframe-blocking.mdx#overview</import>

<import>../react/iframe-blocking.mdx#react-overview</import>

<import>../react/iframe-blocking.mdx#frame</import>

<import>../javascript/shared/iframe-blocking.mdx#headless-usage</import>
